package com.yao.club.reposittory;

import com.yao.club.entity.dto.InformationCommentLikeRecord;
import com.yao.club.entity.dto.PostsCommentLikeRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface InformationCommentLikeRecordRepository extends JpaRepository<InformationCommentLikeRecord, String> {


    @Query(nativeQuery=true,value = "SELECT * from information_comment_like_record WHERE information_id = ?1 AND information_comment_id = ?3 and user_id =?2 ")
    InformationCommentLikeRecord selectLikeById(String information_id, Long userId, String information_comment_id);


}
